// pages/order_close/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        radioItems: [
            { name: '未及时付款', value: '0' },
            { name: '买家不想买了', value: '1', checked: true },
            { name: '买家信息填写错误，重新拍', value: '2'},
            { name: '恶意买家/同行捣乱', value: '3' },
            { name: '缺货', value: '4' },
            { name: '其他', value: '5' }
        ],
    },
    radioChange: function (e) {
        console.log('radio发生change事件，携带value值为：', e.detail.value);

        var radioItems = this.data.radioItems;
        for (var i = 0, len = radioItems.length; i < len; ++i) {
            radioItems[i].checked = radioItems[i].value == e.detail.value;
        }

        this.setData({
            radioItems: radioItems
        });
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },
    submitForm: function(){
        wx.navigateBack({
            
        })
    }
})